<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>OpenIG: OpenIG::Base::LightImplementationCallback Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="openig_logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">OpenIG
   &#160;<span id="projectnumber">2.0.7</span>
   </div>
   <div id="projectbrief">cross-platform open-source OpenSceneGraph Image Generator</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>OpenIG</b></li><li class="navelem"><b>Base</b></li><li class="navelem"><a class="el" href="class_open_i_g_1_1_base_1_1_light_implementation_callback.html">LightImplementationCallback</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_open_i_g_1_1_base_1_1_light_implementation_callback-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">OpenIG::Base::LightImplementationCallback Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>The <a class="el" href="class_open_i_g_1_1_base_1_1_light_implementation_callback.html" title="The LightImplementationCallback class. ">LightImplementationCallback</a> class.  
 <a href="class_open_i_g_1_1_base_1_1_light_implementation_callback.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_types_8h_source.html">Types.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for OpenIG::Base::LightImplementationCallback:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_open_i_g_1_1_base_1_1_light_implementation_callback.png" usemap="#OpenIG::Base::LightImplementationCallback_map" alt=""/>
  <map id="OpenIG::Base::LightImplementationCallback_map" name="OpenIG::Base::LightImplementationCallback_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a814c838efd179e21d734233224b58b90"><td class="memItemLeft" align="right" valign="top">virtual osg::Referenced *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_open_i_g_1_1_base_1_1_light_implementation_callback.html#a814c838efd179e21d734233224b58b90">createLight</a> (unsigned int id, const <a class="el" href="struct_open_i_g_1_1_base_1_1_light_attributes.html">LightAttributes</a> &amp;attribs=<a class="el" href="struct_open_i_g_1_1_base_1_1_light_attributes.html">LightAttributes</a>(), osg::Group *lightsGroup=0)=0</td></tr>
<tr class="memdesc:a814c838efd179e21d734233224b58b90"><td class="mdescLeft">&#160;</td><td class="mdescRight">Method that is called for light creation.  <a href="#a814c838efd179e21d734233224b58b90">More...</a><br /></td></tr>
<tr class="separator:a814c838efd179e21d734233224b58b90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa172a55f692635a8c33af6f4f5972991"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_open_i_g_1_1_base_1_1_light_implementation_callback.html#aa172a55f692635a8c33af6f4f5972991">deleteLight</a> (unsigned int id)</td></tr>
<tr class="memdesc:aa172a55f692635a8c33af6f4f5972991"><td class="mdescLeft">&#160;</td><td class="mdescRight">Method that is called for light deletion.  <a href="#aa172a55f692635a8c33af6f4f5972991">More...</a><br /></td></tr>
<tr class="separator:aa172a55f692635a8c33af6f4f5972991"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a9b88e1c156bf02847698362f19ea18"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_open_i_g_1_1_base_1_1_light_implementation_callback.html#a5a9b88e1c156bf02847698362f19ea18">updateLight</a> (unsigned int id, const <a class="el" href="struct_open_i_g_1_1_base_1_1_light_attributes.html">LightAttributes</a> &amp;attribs)=0</td></tr>
<tr class="memdesc:a5a9b88e1c156bf02847698362f19ea18"><td class="mdescLeft">&#160;</td><td class="mdescRight">Method that is called to update the light by new attributes.  <a href="#a5a9b88e1c156bf02847698362f19ea18">More...</a><br /></td></tr>
<tr class="separator:a5a9b88e1c156bf02847698362f19ea18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d2125da41ec7bf3cac7d0b683ee7d9d"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_open_i_g_1_1_base_1_1_light_implementation_callback.html#a3d2125da41ec7bf3cac7d0b683ee7d9d">setLightUserData</a> (unsigned int id, osg::Referenced *data)</td></tr>
<tr class="memdesc:a3d2125da41ec7bf3cac7d0b683ee7d9d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Method that is called to set user data to the light.  <a href="#a3d2125da41ec7bf3cac7d0b683ee7d9d">More...</a><br /></td></tr>
<tr class="separator:a3d2125da41ec7bf3cac7d0b683ee7d9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The <a class="el" href="class_open_i_g_1_1_base_1_1_light_implementation_callback.html" title="The LightImplementationCallback class. ">LightImplementationCallback</a> class. </p>
<p>See <a class="el" href="class_open_i_g_1_1_base_1_1_image_generator.html#a538d0a4158de1f3e6e2e753d0e93643f">OpenIG::Base::ImageGenerator::setLightImplementationCallback</a> for explanation. Plugins that are implementing lighting to the IG should have inherit and implement from this class </p><dl class="section author"><dt>Author</dt><dd>Trajce Nikolov Nick <a href="#" onclick="location.href='mai'+'lto:'+'ope'+'ni'+'g@c'+'om'+'pro'+'.n'+'et'; return false;">openi<span style="display: none;">.nosp@m.</span>g@co<span style="display: none;">.nosp@m.</span>mpro.<span style="display: none;">.nosp@m.</span>net</a> </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>(c)Compro Computer Services, Inc. </dd></dl>
<dl class="section date"><dt>Date</dt><dd>Sun Jan 11 2015 </dd></dl>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a814c838efd179e21d734233224b58b90"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a814c838efd179e21d734233224b58b90">&#9670;&nbsp;</a></span>createLight()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual osg::Referenced* OpenIG::Base::LightImplementationCallback::createLight </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="struct_open_i_g_1_1_base_1_1_light_attributes.html">LightAttributes</a> &amp;&#160;</td>
          <td class="paramname"><em>attribs</em> = <code><a class="el" href="struct_open_i_g_1_1_base_1_1_light_attributes.html">LightAttributes</a>()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">osg::Group *&#160;</td>
          <td class="paramname"><em>lightsGroup</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Method that is called for light creation. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">id</td><td>The id of the light </td></tr>
    <tr><td class="paramname">attribs</td><td>The light attributes </td></tr>
    <tr><td class="paramname">lightsGroup</td><td>The osg::Group this light is attached to </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Custom light implmentation. </dd></dl>
<dl class="section author"><dt>Author</dt><dd>Trajce Nikolov Nick <a href="#" onclick="location.href='mai'+'lto:'+'ope'+'ni'+'g@c'+'om'+'pro'+'.n'+'et'; return false;">openi<span style="display: none;">.nosp@m.</span>g@co<span style="display: none;">.nosp@m.</span>mpro.<span style="display: none;">.nosp@m.</span>net</a> </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>(c)Compro Computer Services, Inc. </dd></dl>
<dl class="section date"><dt>Date</dt><dd>Sun Jan 11 2015 </dd></dl>

</div>
</div>
<a id="aa172a55f692635a8c33af6f4f5972991"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa172a55f692635a8c33af6f4f5972991">&#9670;&nbsp;</a></span>deleteLight()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void OpenIG::Base::LightImplementationCallback::deleteLight </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Method that is called for light deletion. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">id</td><td>The id of the light </td></tr>
  </table>
  </dd>
</dl>
<dl class="section author"><dt>Author</dt><dd>Trajce Nikolov Nick <a href="#" onclick="location.href='mai'+'lto:'+'ope'+'ni'+'g@c'+'om'+'pro'+'.n'+'et'; return false;">openi<span style="display: none;">.nosp@m.</span>g@co<span style="display: none;">.nosp@m.</span>mpro.<span style="display: none;">.nosp@m.</span>net</a> </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>(c)Compro Computer Services, Inc. </dd></dl>
<dl class="section date"><dt>Date</dt><dd>Sun Jun 1 2016 </dd></dl>

</div>
</div>
<a id="a3d2125da41ec7bf3cac7d0b683ee7d9d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d2125da41ec7bf3cac7d0b683ee7d9d">&#9670;&nbsp;</a></span>setLightUserData()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void OpenIG::Base::LightImplementationCallback::setLightUserData </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">osg::Referenced *&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Method that is called to set user data to the light. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">id</td><td>The id of the light </td></tr>
    <tr><td class="paramname">data</td><td>The user data </td></tr>
  </table>
  </dd>
</dl>
<dl class="section author"><dt>Author</dt><dd>Trajce Nikolov Nick <a href="#" onclick="location.href='mai'+'lto:'+'ope'+'ni'+'g@c'+'om'+'pro'+'.n'+'et'; return false;">openi<span style="display: none;">.nosp@m.</span>g@co<span style="display: none;">.nosp@m.</span>mpro.<span style="display: none;">.nosp@m.</span>net</a> </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>(c)Compro Computer Services, Inc. </dd></dl>
<dl class="section date"><dt>Date</dt><dd>Tue May 17 2016 </dd></dl>

</div>
</div>
<a id="a5a9b88e1c156bf02847698362f19ea18"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5a9b88e1c156bf02847698362f19ea18">&#9670;&nbsp;</a></span>updateLight()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void OpenIG::Base::LightImplementationCallback::updateLight </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="struct_open_i_g_1_1_base_1_1_light_attributes.html">LightAttributes</a> &amp;&#160;</td>
          <td class="paramname"><em>attribs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Method that is called to update the light by new attributes. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">id</td><td>The id of the light </td></tr>
    <tr><td class="paramname">attribs</td><td>New light attributes </td></tr>
  </table>
  </dd>
</dl>
<dl class="section author"><dt>Author</dt><dd>Trajce Nikolov Nick <a href="#" onclick="location.href='mai'+'lto:'+'ope'+'ni'+'g@c'+'om'+'pro'+'.n'+'et'; return false;">openi<span style="display: none;">.nosp@m.</span>g@co<span style="display: none;">.nosp@m.</span>mpro.<span style="display: none;">.nosp@m.</span>net</a> </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>(c)Compro Computer Services, Inc. </dd></dl>
<dl class="section date"><dt>Date</dt><dd>Sun Jan 11 2015 </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>Core-Base/<a class="el" href="_types_8h_source.html">Types.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed May 16 2018 15:41:11 for OpenIG by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
